/** When your routing table is too long, you can split it into small modules **/

import Layout from "@/layout"

const baspSystemManageRouter = {
  path: "/systemManage",
  component: Layout,
  redirect: "/systemManage/moduleManage",
  name: "systemManage",
  meta: {
    title: "系统管理",
    code:"systemManage(basp)",
    icon: "table"
  },
  children: [
    {
      path: "moduleManage",
      component: () => import("@/views/basp/systemManage/moduleManage"),
      name: "moduleManage",
      meta: { title: "模块管理",code:"moduleManage" }
    },{
      path: "resourceManage",
      component: () => import("@/views/basp/systemManage/resourceManage"),
      name: "resourceManage",
      meta: { title: "资源管理",code:"resourceManage" }
    },{
      path: "roleManage",
      component: () => import("@/views/basp/systemManage/roleManage"),
      name: "roleManage",
      meta: { title: "角色管理",code:"roleManage" }
    },{
      path: "datagroupManage",
      component: () => import("@/views/basp/systemManage/datagroupManage"),
      name: "datagroupManage",
      meta: { title: "数据组管理",code:"datagroupManage" }
    }
  ]
}
const baspAcountManageRouter = {
  path: "/acountManage",
  component: Layout,
  redirect: "/acountManage/leafAccountManage",
  name: "acountManage",
  meta: {
    title: "账号管理",
    code:"userManages(basp)",
    icon: "table"
  },
  children: [
  	{
      path: "leafAccountManage",
      component: () => import("@/views/basp/acountManage/leafAccountManage"),
      name: "leafAccountManage",
      meta: { title: "子账号管理" ,code:"leafAccountManage",icon: 'list' }
   	},
    {
      path: "accountAssignManage",
      component: () => import("@/views/basp/acountManage/accountAssignManage"),
      name: "accountAssignManage",
      meta: { title: "账号授权管理（角色）",code:"accountAssignManage" ,icon: 'list' }
    },{
      path: "accountDataGroupManage",
      component: () => import("@/views/basp/acountManage/accountDataGroupManage"),
      name: "accountDataGroupManage",
      meta: { title: "账号授权管理（数据组）" ,code:"accountDataGroupManage",icon: 'list' }
    }
  ]
}
const backstageManageRouter = {
  path: "/backstageManage",
  component: Layout,
  redirect: "/backstageManage/dataDictionary",
  name: "backstageManage",
  meta: {
    title: "字典管理",
    code:"BackAppManage",
    icon: "table"
  },
  children: [
  	{
      path: "dataDictionary",
      component: () => import("@/views/basp/backstageManage/dataDictionary"),
      name: "dataDictionary",
      meta: { title: "数据字典维护" ,code:"dataDictionary",icon: 'list' }
    }
  ]
}
export default {baspSystemManageRouter,baspAcountManageRouter,backstageManageRouter}
